
<form class="layui-form" action="../controller/add_qoutation.php" method="post">



    <? $case_detail=select_lines_all_items($table_Prefix."case_detail","nid desc","case_nid ='".$_REQUEST['nid']."'","") ;?>
    <? $case_quotation=select_lines_all_items($table_Prefix."quotation_detail","case_nid asc,price asc","case_nid ='".$_REQUEST['case_nid']."'","") ;?>




    <table class="layui-table">

        <colgroup>

            <col width="80" >
            <col   >
            <col width="100" >

            <col   >
            <col   >

            <col width="300" >

        </colgroup>

    <?if(count($case_detail)>0){?>
        <tr>
            <th>编号</th>
            <th>采购项</th>
            <th>采购数量</th>
            <th>金额</th>
            <th>状态</th>
            <th>备注</th>
            <th>操作</th>
        </tr>
    <?}else{echo "暂无数据";}?>


    <?for($iiix=0;$iiix<count($case_detail);$iiix++){?>




        <tr id="item<?echo $case_detail[$iiix]['nid']?>" style="font-weight: bold">
            <td> <?echo $iiix+1 ?></td>
            <td> <?echo $case_detail[$iiix]['product_name']?></td>
            <td> <?echo $case_detail[$iiix]['number']?></td>
            <td><input name="ai_price[<?echo $case_detail[$iiix]['product_nid']?>]" type="text" value="<?echo $product_price[$case_detail[$iiix]['product_nid']]?>"> </td>
            <td><?echo $quotation_status[$case_detail[$iiix]['product_nid']]?></td>
            <td> </td>
            <td>


                <button type="submit" class="layui-btn layui-bg-green" > 提交报价 </button>
            </td>


        </tr>




        <?;}?>
        <input name="ai_unit_name" type="hidden" value="<?echo $unit['name']?>">
        <input name="ai_case_nid" type="hidden" value="<?echo $_REQUEST['nid']?>">
        <input name="ai_unit_nid" type="hidden" value="<?echo $unit['nid']?>">

</table>






</form>





